package team.tttxs.ct.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import team.tttxs.ct.domain.User;
import team.tttxs.ct.hibernate.dao.UserDao;
import team.tttxs.ct.mybatis.mapper.UserMapper;
import team.tttxs.ct.service.UserService;

/** 
 * 
 * @author nico
 * @version createTime：2018年3月30日 下午10:46:11
 */
@Service
@Transactional(rollbackFor = Throwable.class)
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	@Autowired
	private UserDao userDaoImpl;

	@Override
	public List<User> selectAllUser() {
//		return userMapper.selectAllUser();
		return userDaoImpl.get(null, null);
	}
	
	
}
